package org.common.utils.net.netty.http.listener.entity;

import io.netty.channel.ChannelHandlerContext;
import org.common.utils.net.netty.http.listener.HttpListener;

/**
 * channel注销时调用
 * @author zhouzhibing
 * @date 2025/11/24 14:31
 */
public class ChannelUnregisteredListenerInfo implements ListenerInfo {

    /**
     * 上下文
     */
    private ChannelHandlerContext ctx;

    public ChannelUnregisteredListenerInfo(ChannelHandlerContext ctx) {
        this.ctx = ctx;
    }

    @Override
    public HttpListener.Key getKey() {
        return HttpListener.Key.CHANNEL_UNREGISTERED;
    }

    public ChannelHandlerContext getCtx() {
        return ctx;
    }
}
